package com.zhihaihe.file.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhihaihe.file.mapper.ShareFileMapper;
import com.zhihaihe.file.mapper.ShareMapper;
import com.zhihaihe.file.pojo.Share;
import com.zhihaihe.file.pojo.ShareFile;
import com.zhihaihe.file.service.IShareFileService;
import com.zhihaihe.file.service.IShareService;
import com.zhihaihe.file.vo.share.ShareFileListVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShareFileImpl  extends ServiceImpl<ShareFileMapper, ShareFile> implements IShareFileService {
    @Resource
    ShareFileMapper shareFileMapper;

    @Override
    public void batchInsertShareFile(List<ShareFile> shareFiles) {
        shareFileMapper.batchInsertShareFile(shareFiles);
    }

    @Override
    public List<ShareFileListVO> selectShareFileList(String shareBatchNum, String filePath) {
        return shareFileMapper.selectShareFileList(shareBatchNum, filePath);
    }
}
